package bigmath;

public class IntegerDemo {
    public static void main(String[] args) {
        Integer i1 = -128;//cache[178]
        Integer i2 = -128;//cache[178]
        System.out.println(i1==i2);//true

        Integer i3 = 127;//new Integer(129);
        Integer i4 = 127;//new Integer(129);
        System.out.println(i3==i4);//false
        int i5 = 129;
        //当基本类型和包装类型运算时，转换为基本类型
        System.out.println(i4==i5);//true

        System.out.println(i5+i4);
    }
}
